<template>
    <div class="body">
    <div class="header">
      <img
        src="../../assets/img/member/h1@2x.png"
        class="images"
        alt=""
      >
    </div>
    <!-- g购物卡 -->
    <div class="six">
      <ul>
        <li @click="nav({goods_id:10647})">
          <div class="btn">立即购买</div>
        </li>
        <li @click="nav({goods_id:12044})">
          <div class="btn">立即购买</div>
        </li>
        <li @click="nav({goods_id:12045})">
          <div class="btn">立即购买</div>
        </li>
      </ul>
    </div>
    <!-- title -->
    <img
      src="../../assets/img/member/h2@2x.png"
      class="images"
      alt=""
    >
    <div class="teer">热销商品 限购一件</div>
    <!-- 必买 -->
    <div class="much">
      <div class="item">
        <ul>
          <li
            v-for="item in list"
            :key="item.goods_id"
            @click="nav(item)"
          >
            <div class="black">
              <img
                v-lazy="item.goods_img"
                :key="item.goods_img"
                class="one-hit"
              >
              <div class="text-one"> {{item.goods_name}}</div>
              <div class="money-Hot">会员价:¥
                <span>{{item.active_price}}</span>
                <span class="Hote">抢购</span>
              </div>
            </div>
          </li>
        </ul>
      </div>
      <!-- 轮播two -->
      <!-- :autoplay="2000" -->
      <van-swipe
        :duration="700"
        :autoplay="5000"
        style="height:5.46667rem;"
        :show-indicators=true
        indicator-color='#FBE1C0'
      >
        <van-swipe-item
          v-for="item in lister"
          :key="item.goods_id"
        >
          <ul>
            <li
              v-for="itemr in item"
              :key="itemr.goods_id"
              @click="nav(itemr)"
            >
              <div class="black">
                <img
                  class="one-hit"
                  v-lazy="itemr.goods_img"
                  :key="itemr.goods_img"
                >
                <div class="text-one"> {{itemr.goods_name}}</div>
                <div class="money-Hot">会员价:¥
                  <span>{{itemr.active_price}}</span>
                </div>
                <div class="boxed">立即抢购</div>
              </div>

            </li>
          </ul>
        </van-swipe-item>
      </van-swipe>
    </div>
    <img
      src="../../assets/img/member/h3@2x.png"
      class="images"
      alt=""
    >
    <div class="much">
      <div class="item">
        <ul>
          <li
            v-for="item in listdev"
            :key="item.goods_id"
            @click="nav(item)"
          >
            <div class="black">
              <img
                v-lazy="item.goods_img"
                :key="item.goods_img"
                class="one-hit"
              >
              <div class="text-one"> {{item.goods_name}}</div>
              <div class="money-Hot">会员价:¥
                <span>{{item.active_price}}</span>
                <span class="Hote">抢购</span>
              </div>
            </div>
          </li>
        </ul>
      </div>
    </div>
    <img
      src="../../assets/img/member/h4@2x.png"
      class="images"
      alt=""
    >
    <div class="much">
      <div class="item">
        <ul>
          <li
            v-for="item in atr"
            :key="item.goods_id"
            @click="nav(item)"
          >
            <div class="black">
              <img
                v-lazy="item.goods_img"
                :key="item.goods_img"
                class="one-hit"
              >
              <div class="text-one"> {{item.goods_name}}</div>
              <div class="money-Hot">会员价:¥
                <span>{{item.active_price}}</span>
                <span class="Hote">抢购</span>
              </div>
            </div>
          </li>
        </ul>
      </div>
      <!-- 轮播two -->
      <!-- :autoplay="2000" -->
      <van-swipe
        :duration="700"
        :autoplay="5000"
        style="height:5.46667rem;"
        :show-indicators=true
        indicator-color='#FBE1C0'
      >
        <van-swipe-item
          v-for="item in atrdev"
          :key="item.goods_id"
        >
          <ul>
            <li
              v-for="itemr in item"
              :key="itemr.goods_id"
              @click="nav(itemr)"
            >
              <div class="black">
                <img
                  class="one-hit"
                  v-lazy="itemr.goods_img"
                  :key="itemr.goods_img"
                >
                <div class="text-one"> {{itemr.goods_name}}</div>
                <div class="money-Hot">会员价:¥
                  <span>{{itemr.active_price}}</span>
                </div>
                <div class="boxed">立即抢购</div>
              </div>

            </li>
          </ul>
        </van-swipe-item>
      </van-swipe>
    </div>
    <!-- title2 -->
    <!-- 热销 -->
    <van-tabs
      type="card"
      animated
      sticky
      color='#984400'
      background='transparent'
      title-active-color='#F2B77C'
      title-inactive-color='#9A4E17'
    >
      <van-tab title="精致烹饪">
        <div class="Box">
          <ul>
            <li
              v-for="item in listerdev"
              :key="item.goods_id"
              @click="nav(item)"
            >
              <div class="black">
                <img
                  class="one-hit"
                  v-lazy="item.goods_img"
                  :key="item.goods_img"
                >
                <div class="text-one"> {{item.goods_name}}</div>
                <div class="money-Hot">会员价:¥
                  <span>{{item.active_price}}</span>
                </div>
                <div class="boxed">立即抢购</div>
              </div>

            </li>
          </ul>
        </div>
      </van-tab>
      <van-tab title="营养保健">
        <div class="Box">
          <ul>
            <li
              v-for="item in dev"
              :key="item.goods_id"
              @click="nav(item)"
            >
              <div class="black">
                <img
                  class="one-hit"
                  v-lazy="item.goods_img"
                  :key="item.goods_img"
                >
                <div class="text-one"> {{item.goods_name}}</div>
                <div class="money-Hot">会员价:¥
                  <span>{{item.active_price}}</span>
                </div>
                <div class="boxed">立即抢购</div>
              </div>

            </li>
          </ul>
        </div>
      </van-tab>
      <van-tab title="运动户外">
        <div class="Box">
          <ul>
            <li
              v-for="item in devs"
              :key="item.goods_id"
              @click="nav(item)"
            >
              <div class="black">
                <img
                  class="one-hit"
                  v-lazy="item.goods_img"
                  :key="item.goods_img"
                >
                <div class="text-one"> {{item.goods_name}}</div>
                <div class="money-Hot">会员价:¥
                  <span>{{item.active_price}}</span>
                </div>
                <div class="boxed">立即抢购</div>
              </div>

            </li>
          </ul>
        </div>
      </van-tab>
    </van-tabs>
    <img
      @click="ping"
      src="../../assets/img/member/cha.png"
      class="Title"
      alt=""
    >
    <!-- 微信遮罩 -->
    <div
      @touchmove.prevent
      class="rigth"
      v-if="show"
    >
      <img
        src="../../assets/img/wei_20210307160153.png"
        alt=""
      >
    </div>
    <!-- 置顶 -->
    <div
      class="totop"
      id="totop"
      @click="backTop"
      v-show="btnFlag"
    >
      <!-- <i class="iconfont icon-zhiding"></i> -->
    </div>
    <div class="banner">
      <img
        src="../../assets/img/share/x.png"
        class="imgone"
        alt=""
      >
      <img
        src="../../assets/img/share/yuan.png"
        class="imgtwo"
        alt=""
      >
      <span class="spanone">打开媛福达APP
        <span class="spantwo">购物方便优惠多</span>
      </span>
      <div
        class="btn"
        @click="Gone"
      >下载</div>
      <!-- @click="Gonext" -->
      <div
        id="wekupButton"
        class="btn"
      >打开</div>
    </div>
  </div>
</template>

<script>
import bridge from '../../js/js1'
import { index, Coupondev } from '@/api/index'
import { share } from '../../js/wechat'
import { getSystem, openApp, getUrlQuery, parseKeyValue } from '../../js/js'
export default {
  // 组件名称
  name: '',
  // 局部注册的组件
  components: {},
  // 组件参数 接收来自父组件的数据
  props: {},
  // 组件状态值
  data () {
    return {
      list: [],
      lister: [],
      listdev: [],
      show: false,
      system: getSystem(),
      atr: [],
      atrdev: [],
      listerdev: [],
      dev: [],
      devs: [],
      share: true,
      scrollTop: 0,
      btnFlag: false,
      showTips: false
    }
  },
  destroyed () {
    window.removeEventListener('scroll', this.scrollToTop);
  },
  // 计算属性
  computed: {},
  // 侦听器
  watch: {},
  // 生命周期钩子   注：没用到的钩子请自行删除
  /**
  * 组件实例创建完成，属性已绑定，但DOM还未生成，$ el属性还不存在
  */
  created () {
    this.create()
    this.system = getSystem()
    if (this.system.wechat) this.showTips = true
    if (!this.system.yfd && !this.system.wechat) {
      if (this.system.iOS9 || this.system.android) {
        ULink([{
          id: 'usr1anivh5aa8uq6', // 后台生成的裂变活动LinkID
          data: {
            path: 'webview',
            webUrl: 'https://download.yuanfuda933.com/h5/other2.html#/membere',// 活动地址
            andUrl: 'https://download.yuanfuda933.com/h5/other2.html#/membere'// 活动地址
            // extraData: `{id:${this.id},uid:${this.uid}`,
            // extraData: {
            //   id: this.id,
            //   uid: this.uid,
            //   tid: this.tid
            // }
          }, /* 自定义参数，选填 */
          selector: '#wekupButton',
          useOpenInBrowerTips: 'default',
          proxyOpenDownload: function (defaultAction, LinkInstance) {
            window.location.href = LinkInstance.solution.downloadUrl
          }
        }])
      }
    } else {
      this.getToken(token => {
        this.$store.commit('setUser', token)
      })
    }
  },
  /**
  * el 被新创建的 vm.el 替换，并挂载到实例上去之后调用该钩子。
  * 如果 root 实例挂载了一个文档内元素，当 mounted 被调用时 vm.el 也在文档内。
  */
  mounted () {
    this.toph()
    window.addEventListener('scroll', this.scrollToTop)
    share({
      title: '媛福达超级会员日',
      desc: '【宠爱加倍，零食自由】会员限时特惠7.5元起！',
      imgUrl: 'https://download.yuanfuda933.com/h5/images/member.png',
      shareUrl: 'https://download.yuanfuda933.com/h5/other2.html#/member',
    })
  },
  // 组件方法
  methods: {
    toph () {
      if (this.system.wechat) {
        this.show = true
        return false
      } else {
        this.show = false
      }
    },
    Gone () {
      if (this.system.iOS) {
        this.href('https://itunes.apple.com/cn/app/id1542709823?mt=8')
      } else if (this.system.android) {
        window.location.href = 'https://yuanfuda933.oss-cn-zhangjiakou.aliyuncs.com/yfdMall_1_v1.0.1.apk'
      }
    },
    ping () {
      if (this.system.wechat) {
        this.show = true
        return false
      } else {
        this.show = false
      }
      if (!this.system.iOS9 && !this.system.android) {
        this.href('https://itunes.apple.com/cn/app/id1542709823?mt=8')
        return false
      }
      window.location.href = 'yfd://yfdmall:8080/homePage'
    },
    // 点击图片回到顶部方法，加计时器是为了过渡顺滑
    backTop () {
      const that = this
      let timer = setInterval(() => {
        let ispeed = Math.floor(-that.scrollTop / 5)
        document.documentElement.scrollTop = document.body.scrollTop = that.scrollTop + ispeed
        if (that.scrollTop === 0) {
          clearInterval(timer)
        }
      }, 16)
    },
    // 为了计算距离顶部的高度，当高度大于60显示回顶部图标，小于60则隐藏
    scrollToTop () {
      const that = this
      let scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop
      that.scrollTop = scrollTop
      // console.log(that.scrollTop);
      if (that.scrollTop > 800) {
        that.btnFlag = true
      } else {
        that.btnFlag = false
      }
    },
    async create () {
      try {
        const res = await index({
          id: 148
        })
        console.log(res.data.data.types);
        this.list = res.data.data.types[0].goods.slice(0, 2) // 1
        var atrdev = res.data.data.types[0].goods.slice(2, 20)

        var resultdev = []
        for (var i = 0; i < atrdev.length; i += 3) {
          resultdev.push(atrdev.slice(i, i + 3));
        }
        this.lister = resultdev // 2

        this.listdev = res.data.data.types[1].goods // 3

        this.atr = res.data.data.types[2].goods.slice(0, 2) // 4
        var atr = res.data.data.types[2].goods.slice(2, 20)

        var result = []
        for (var i = 0; i < atr.length; i += 3) {
          result.push(atr.slice(i, i + 3));
        }
        this.atrdev = result // 5
        this.listerdev = res.data.data.types[3].goods // 6
        this.dev = res.data.data.types[4].goods //7
        this.devs = res.data.data.types[5].goods //8
      } catch (err) {
        console.log('错误');
      }
    },
    // 跳转下载
    nav (item) {
      if (this.system.wechat) {
        this.show = true
        return false
      } else {
        this.show = false
      }
      if (!this.system.iOS9 && !this.system.android) {
        this.href('https://itunes.apple.com/cn/app/id1542709823?mt=8')
        return false
      }
      if (this.system.android) {
        openApp({
          query: { spuId: item.goods_id }
        })
      }
      if (this.system.iOS) this.href('https://itunes.apple.com/cn/app/id1542709823?mt=8')

    },
    href (uri, blank = true) {
      const a = document.createElement('a')
      a.style.display = 'none'
      a.href = uri
      if (blank) a.setAttribute('target', '_blank')
      document.body.appendChild(a)
      a.click()
      setTimeout(t => {
        document.body.removeChild(a)
      }, 0)
    },
  }
}
</script>

<style scoped lang="less">
.body {
  overflow: hidden;
  min-width: 320px;
  max-width: 750px;
  width: 10rem;
  // height: 160.066667rem;
  background: #191307;
  margin: 0 auto;
  line-height: 1.5;
  font-family: Arial, Helvetica;
  .moy {
    width: 2.746667rem;
    height: 0.613333rem;
    margin: 0.266667rem auto;
    border-radius: 0.4rem;
    font-size: 0.373333rem;
    color: #ff0000;
    text-align: center;
    line-height: 0.61rem;
    border: 0.026667rem solid#FFFFFF;
    background: -webkit-linear-gradient(top, #fcd073, #f6dba4);
  }
  .totop {
    position: fixed;
    width: 1.2rem; /* 40/16 */
    height: 1.2rem;
    border-radius: 1.25rem /* 20/16 */;
    opacity: 0.8;
    background: url("../../assets/ding.png") no-repeat;
    background-size: contain;
    box-shadow: 0 1px 5px 0 #e0e0e0;
    right: 0.125rem; /* 18/16 */
    bottom: 3rem; /* 64/16 */
    z-index: 1100;
    -webkit-transition: opacity 0.5s;
    transition: opacity 0.5s;
  }
  .banner {
    z-index: 99;
    position: fixed;
    top: 0%;
    width: 10rem;
    height: 2.28rem;
    background: #000000;
    display: flex;
    .imgone {
      display: block;
      margin: auto 0.293333rem;
      width: 0.586667rem;
      height: 0.586667rem;
    }
    .imgtwo {
      display: block;
      margin: auto 0.266667rem;
      width: 1.28rem;
      height: 1.28rem;
    }
    .spanone {
      margin: auto 0.066667rem;
      width: 3.2rem;
      height: 1.453333rem;
      font-size: 0.426667rem;
      color: #ffffff;
      .spantwo {
        font-size: 0.32rem;
        font-size: #9b9b9b;
        color: #9b9b9b;
      }
    }
    .btn {
      width: 1.633333rem;
      height: 0.906667rem;
      background: #ea0462;
      border-radius: 0.133333rem;
      font-size: 0.426667rem;
      color: #ffffff;
      text-align: center;
      line-height: 0.906667rem;
      margin: auto 0.1rem;
    }
  }
  .rigth {
    position: fixed;
    top: 0;
    z-index: 9999;
    width: 10rem;
    height: 30rem;
    background-color: #1e1e1e;
    opacity: 0.8;
  }
  .rigth img {
    width: 8rem;
    height: 4.4rem;
    float: right;
  }
  .header {
    background: url("../../assets/img/member/hp@2x.png") no-repeat;
    background-size: contain;
    width: 10rem;
    height: 17.706667rem;
    .images {
      width: 10rem;
      height: 1.226667rem;
      margin: 16.3rem auto 0;
    }
  }
  // g购物卡
  .six {
    width: 10rem;
    height: 4.293333rem;
    box-sizing: border-box;
    margin: 0 auto;
    padding-top: 0.266667rem;
    ul {
      li {
        margin-left: 0.216667rem;
        width: 3.066667rem;
        height: 4.213333rem;
        float: left;
        .btn {
          width: 2.646667rem;
          height: 0.826667rem;
          border-radius: 0.01rem;
          margin: 3.08rem 0.8rem 0 0.2rem;
          font-weight: 600;
          font-size: 0.32rem;
          background: #1f1f1c;
          color: #fce7c4;
          text-align: center;
          line-height: 0.826667rem;
          animation: mymove 2s infinite;
          -webkit-animation: mymove 2s infinite; /*Safari and Chrome*/
          animation-direction: alternate; /*轮流反向播放动画。*/
          animation-timing-function: ease-in-out; /*动画的速度曲线*/
          /* Safari 和 Chrome */
          -webkit-animation: mymove 2s infinite;
          -webkit-animation-direction: alternate; /*轮流反向播放动画。*/
        }
      }
      li:nth-child(1) {
        background: url("../../assets/img/member/100.png") no-repeat;
        background-size: contain;
      }
      li:nth-child(2) {
        background: url("../../assets/img/member/300.png") no-repeat;
        background-size: contain;
      }
      li:nth-child(3) {
        background: url("../../assets/img/member/600.png") no-repeat;
        background-size: contain;
      }
    }
  }
  .images {
    width: 10rem;
    height: 2.426667rem;
    margin: 0.4rem auto 0;
  }
  .Title {
    width: 10rem;
    height: 0.96rem;
  }
  .teer {
    width: 5rem;
    text-align: center;
    margin: 0 auto;
    font-size: 0.373333rem;
    color: #fcda5e;
  }
  .much {
    width: 10rem;
    margin: 0 auto 0.266667rem;
    border-radius: 0.266667rem;
    padding-top: 0.666667rem;
    box-sizing: border-box;
    .item {
      overflow: hidden;
      ul li {
        // box-shadow: 0 0.02rem 0.0016667rem 0.0016667rem #e7e7e7;
        float: left;
        position: relative;
        width: 9.333333rem;
        margin-left: 0.16333rem;
        margin-bottom: 0.16rem;
        height: 4.213333rem;
        border-top-left-radius: 0.55rem;
        border-top-right-radius: 0.55rem;
        border-bottom-left-radius: 0.55rem;
        border-bottom-right-radius: 0.55rem;
        background-color: #b08e53;
        border: 0.183333rem solid #96663b;
        overflow: hidden;
        .black {
          box-sizing: border-box;
          margin-top: 0.0713333rem;
          width: 100%;
          height: 98%;
          background: #262623;
          border-top-left-radius: 0.65rem;
          border-top-right-radius: 0.65rem;
          border-bottom-left-radius: 0.55rem;
          border-bottom-right-radius: 0.55rem;
        }
        .one-hit {
          width: 3.653333rem;
          height: 3.493333rem;
          margin-top: 0.36rem;
          margin-left: 0.413333rem;
          border-radius: 0.266667rem;
        }
        .text-one {
          float: right;
          font-weight: 600;
          width: 4.053333rem;
          height: 1.273333rem;
          font-size: 0.426667rem;
          border-bottom: 0.026667rem solid #f9d3a9;
          color: #f9d3a9;
          margin-top: 0.693333rem;
          margin-right: 0.4rem;
          overflow: hidden;
          text-overflow: ellipsis;
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 2;
        }
        .money-Hot {
          box-sizing: border-box;
          position: absolute;
          top: 64%;
          right: 7%;
          width: 3.86rem;
          border-radius: 0.1rem;
          height: 0.773333rem;
          background: -webkit-linear-gradient(top, #fbe1c0, #be824b);
          font-size: 0.266667rem;
          padding-top: 0.126667rem;
          padding-left: 0.173333rem;
          font-weight: 600;
          color: #6c4302;
          span {
            font-size: 0.373333rem;
            color: #6c4302;
          }
          .Hote {
            margin-right: 0.126667rem;
            float: right;
            display: block;
            width: 0.753333rem;
            height: 0.513333rem;
            background: -webkit-linear-gradient(top, #6c4302, #201605);
            text-align: center;
            line-height: 0.513333rem;
            border-radius: 0.1rem;
            font-size: 0.266667rem;
            color: #bd964e;
          }
        }
      }
      li:nth-child(even) .one-hit {
        float: right;
        width: 3.653333rem;
        height: 3.493333rem;
        margin-top: 0.36rem;
        margin-right: 0.413333rem;
        border-radius: 0.266667rem;
      }
      li:nth-child(even) .text-one {
        position: absolute;
        top: 0%;
        left: 4%;
        font-weight: 600;
        width: 4.053333rem;
        height: 1.273333rem;
        font-size: 0.426667rem;
        border-bottom: 0.026667rem solid #f9d3a9;
        color: #f9d3a9;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
      }
      li:nth-child(even) .money-Hot {
        box-sizing: border-box;
        position: absolute;
        top: 64%;
        right: 54%;
        width: 3.86rem;
        border-radius: 0.1rem;
        height: 0.773333rem;
        background: -webkit-linear-gradient(top, #fbe1c0, #be824b);
        font-size: 0.266667rem;
        padding-top: 0.126667rem;
        padding-left: 0.173333rem;
        font-weight: 600;
        color: #6c4302;
        span {
          font-size: 0.373333rem;
          color: #6c4302;
        }
        .Hote {
          margin-right: 0.126667rem;
          float: right;
          display: block;
          width: 0.753333rem;
          height: 0.513333rem;
          background: -webkit-linear-gradient(top, #6c4302, #201605);
          text-align: center;
          line-height: 0.513333rem;
          border-radius: 0.1rem;
          font-size: 0.266667rem;
          color: #bd964e;
        }
      }
    }
    .van-swipe {
      width: 10rem;
      overflow: hidden;
    }
    /deep/ .van-swipe__indicators {
      bottom: 0rem;
    }
    /deep/ .van-swipe-item {
      li:nth-child(2) {
        // margin: 0 0.36rem;
      }
      ul li {
        // box-shadow: 0 0.02rem 0.0016667rem 0.0016667rem #e7e7e7;
        float: left;
        width: 2.833333rem;
        height: 4.826667rem;
        overflow: hidden;
        background: #ffffff;
        margin-left: 0.119333rem;
        margin-bottom: 0.266667rem;
        border-top-left-radius: 0.55rem;
        border-top-right-radius: 0.55rem;
        border-bottom-left-radius: 0.55rem;
        border-bottom-right-radius: 0.55rem;
        background-color: #b08e53;
        border: 0.183333rem solid #96663b;
        .black {
          box-sizing: border-box;
          margin-top: 0.0713333rem;
          width: 100%;
          height: 98%;
          background: #262623;
          border-top-left-radius: 0.65rem;
          border-top-right-radius: 0.65rem;
          border-bottom-left-radius: 0.55rem;
          border-bottom-right-radius: 0.55rem;
        }
        .one-hit {
          border-radius: 0.266667rem;
          margin-top: 0.166667rem;
          margin-left: 0.26rem;
          width: 2.3rem;
          height: 2.3rem;
        }
        .text-one {
          font-size: 0.32rem;
          color: #f9d3aa;
          width: 2.733333rem;
          margin: 0 auto;
          // height: 0.906667rem;
          overflow: hidden;
          text-overflow: ellipsis;
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 1;
        }
        .money-Hot {
          font-weight: 600;
          margin-top: 0.206667rem;
          margin-left: 0.136667rem;
          font-size: 0.266667rem;
          color: #f9d3aa;
          span {
            color: #fbe1c0;
            font-size: 0.373333rem;
          }
        }
        .boxed {
          width: 1.52rem;
          height: 0.533333rem;
          text-align: center;
          line-height: 0.533333rem;
          margin: 0.09667rem auto 0;
          border-radius: 0.1266667rem;
          background: -webkit-linear-gradient(top, #fbe1c0, #f6c08c);
          font-size: 0.266667rem;
          color: #bd964e;
          font-weight: 600;
        }
      }
    }
  }
  // tab栏
  .van-tabs--card /deep/ .van-tabs__wrap {
    height: 2.426667rem;
    background: url("../../assets/img/member/h5@2x.png") no-repeat;
    background-size: contain;
    // 状态栏
    .van-tabs__nav--card {
      margin-top: 1.233333rem;
      border: 0;
      height: 0.933333rem;
      // 每一格
      .van-tab {
        height: 0.933333rem;
        width: 2.933333rem !important;
        border-radius: 0.2rem;
        border-right: 0;
        margin-top: 0.1266667rem;
        background: -webkit-linear-gradient(top, #f8c787, #fbdeaf);
      }
      // 选中格
      .van-tab.van-tab--active {
        background: -webkit-linear-gradient(top, #ad5904, #311f01);
        // border: 0.056667rem solid #f8b888;
        .van-tab__text--ellipsis {
          font-weight: 600;
        }
      }
    }
  }
  .van-tab__pane-wrapper {
    .Box {
      width: 10rem;
      border-radius: 0.166667rem;
      margin: 0.266667rem auto;
      overflow: hidden;
      padding-top: 0.4rem;
      ul li {
        // box-shadow: 0 0.02rem 0.0016667rem 0.0016667rem #e7e7e7;
        float: left;
        width: 4.293333rem;
        height: 6.88rem;
        overflow: hidden;
        background: #ffffff;
        margin-left: 0.219333rem;
        margin-bottom: 0.266667rem;
        border-top-left-radius: 0.55rem;
        border-top-right-radius: 0.55rem;
        border-bottom-left-radius: 0.55rem;
        border-bottom-right-radius: 0.55rem;
        background-color: #b08e53;
        border: 0.183333rem solid #96663b;
        .black {
          box-sizing: border-box;
          margin-top: 0.0713333rem;
          width: 100%;
          height: 98%;
          background: #262623;
          border-top-left-radius: 0.65rem;
          border-top-right-radius: 0.65rem;
          border-bottom-left-radius: 0.55rem;
          border-bottom-right-radius: 0.55rem;
        }
        .one-hit {
          border-radius: 0.266667rem;
          margin-top: 0.166667rem;
          margin-left: 0.26rem;
          width: 3.76rem;
          height: 3.626667rem;
        }
        .text-one {
          font-size: 0.373333rem;
          color: #f9d3aa;
          width: 3.733333rem;
          margin: 0 auto;
          // height: 0.906667rem;
          overflow: hidden;
          text-overflow: ellipsis;
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 1;
        }
        .money-Hot {
          text-align: center;
          font-weight: 600;
          margin-top: 0.206667rem;
          margin-left: 0.136667rem;
          font-size: 0.32rem;
          color: #f9d3aa;
          span {
            color: #fbe1c0;
            font-size: 0.426667rem;
          }
        }
        .boxed {
          width: 2.32rem;
          height: 0.76rem;
          text-align: center;
          line-height: 0.76rem;
          margin: 0.30667rem auto 0;
          border-radius: 0.1266667rem;
          background: -webkit-linear-gradient(top, #fbe1c0, #f6c08c);
          font-size: 0.373333rem;
          color: #bd964e;
          font-weight: 600;
        }
      }
    }
  }
  @keyframes mymove {
    0% {
      transform: scale(1); /*开始为原始大小*/
    }
    25% {
      transform: scale(1.1); /*放大1.1倍*/
    }
    50% {
      transform: scale(1);
    }
    75% {
      transform: scale(1.1);
    }
  }
  @-webkit-keyframes mymove /*Safari and Chrome*/ {
    0% {
      transform: scale(1); /*开始为原始大小*/
    }
    25% {
      transform: scale(1.1); /*放大1.1倍*/
    }
    50% {
      transform: scale(1);
    }
    75% {
      transform: scale(1.1);
    }
  }
}
</style>
